package com.zhongkun.datahome.service.service;

import com.zhongkun.datahome.service.req.qry.file.DownloadBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.File;

/**
 * 文件service 目前仅支持阿里云oss,七牛云
 */
public interface IFileService {

    String upload(MultipartFile file) throws Exception;

    String getFileSize(String url);

    String uploadData(byte[] data);

    void download(HttpServletResponse response, DownloadBody body);
}
